package com.simon.hse.activity.danger;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.google.gson.Gson;
import com.simon.hse.MyApplication;
import com.simon.hse.R;
import com.simon.hse.activity.BaseActivity;
import com.simon.hse.http.CommonCallBack;
import com.simon.hse.http.HttpManager;
import com.simon.hse.http.entity.DropDownInput;
import com.simon.hse.http.entity.DropDownOutput;
import com.simon.hse.http.entity.TrainPersonInput;
import com.simon.hse.http.entity.TrainPersonOutput;
import com.simon.hse.utils.ToastUtils;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

import java.util.ArrayList;
import java.util.List;

import retrofit2.Call;

@SuppressWarnings("all")
/**
 * 隐患排查标准知识库
 */
@ContentView(R.layout.activity_knowledge_manager)
public class KnowledgeManagerActivity extends BaseActivity {
    @ViewInject(R.id.tv_common_title)
    TextView mTv_common_title;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mTv_common_title.setText("隐患排查标准知识库");
    }

    @Event(value = {R.id.iv_common_left})
    private void back(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.iv_common_left:
                finish();
                break;
        }
    }

    @Event(value = {R.id.ll_function_1, R.id.ll_function_2, R.id.ll_function_3, R.id.ll_function_4, R.id.ll_function_5, R.id.ll_function_6, R.id.ll_function_7})
    private void clickFunction(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.ll_function_1:
                intent.setClass(KnowledgeManagerActivity.this, KnowledgeOneActivity.class);
                break;
            case R.id.ll_function_2:
                intent.setClass(KnowledgeManagerActivity.this, KnowledgeTwoActivity.class);
                break;
            case R.id.ll_function_3:
                intent.setClass(KnowledgeManagerActivity.this, KnowledgeThreeActivity.class);
                break;
            case R.id.ll_function_4:
                intent.setClass(KnowledgeManagerActivity.this, KnowledgeForeActivity.class);
                break;
            case R.id.ll_function_5:
                intent.setClass(KnowledgeManagerActivity.this, KnowledgeFiveActivity.class);
                break;
            case R.id.ll_function_6:
                intent.setClass(KnowledgeManagerActivity.this, KnowledgeSixActivity.class);
                break;
            case R.id.ll_function_7:
                intent.setClass(KnowledgeManagerActivity.this, KnowledgeSevenActivity.class);
                break;
        }
        startActivity(intent);
    }
}
